package day015.map;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;

public class HashMapTest {
    public static void main(String[] args) {
        HashMap<Student, String> hm = new HashMap<>();

        hm.put(new Student("迪丽热巴", 18), "新疆");
        hm.put(new Student("迪丽热巴", 18), "中国");

        Set<Student> set = hm.keySet();
        for (Student key : set) {
            String value = hm.get(key);
            System.out.println(key + "--" + value);
        }
    }
}
